﻿#include "mainwindow.h"

#include <QApplication>


#include <QGraphicsView>
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include <QGraphicsEllipseItem>
#include <QDebug>
#include "dragdropinterop.h"
#include "MyGraphicsScene.h"
#include "MyGraphicsView.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);


//    std::cout<<"ok"<<std::endl;
//     Mat img;
//     img = imread("i:/a.jpg");
//     imshow("test", img);



    MyGraphicsScene* customScene = new MyGraphicsScene;

    MyGraphicsView* view = new MyGraphicsView(customScene);

    MainWindow w;
    w.setCentralWidget(view);

    w.show();
    return a.exec();
}
